<%= form_for(@hotspot) do |f| %>
  <% if @hotspot.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@hotspot.errors.count, "error") %> prohibited this hotspot from being saved:</h2>

      <ul>
      <% @hotspot.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :mac %><br>
    <%= f.text_field :mac %>
  </div>
  <div class="field">
    <%= f.label :geocode %><br>
    <%= f.text_field :geocode %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
